package com.tianqu.tms.dao;

import java.util.List;

import com.tianqu.tms.core.exception.TmsDaoException;
import com.tianqu.tms.dto.TmsDetectPicDto;

/**
 * 车辆检测图片信息dao
 * 
 * @author tianshifu
 *
 */
public interface TmsDetectPicDao {
	
	/**
	 * 根据检测ID删除车辆图片信息
	 * @throws TmsDaoException 
	 */
	public void deleteTisPicInfoByDetectId(int detectId) throws TmsDaoException;

	/**
	 * 插入车辆图片信息
	 */
	public void insertTisPic(TmsDetectPicDto dto) throws TmsDaoException;
	/**
	 * 查询照片信息
	 * @param dto
	 * @return
	 * @throws TmsDaoException
	 */
	 public  List<TmsDetectPicDto>  getTisPic(TmsDetectPicDto dto)throws TmsDaoException;

	/**
	 * 
	 * 根据检测ID和图片类型查询检测图片信息 
	 * @throws TmsDaoException 
	 */
	public List<TmsDetectPicDto> findDetectPicInfoByDetectIdAndType(int carDetectId,int imgType) throws TmsDaoException;
	/**
	 * 
	 * 批量添加图片信息
	 * @throws TmsDaoException 
	 */
	
	public void insertTisDetectPicInfo(List<TmsDetectPicDto> dtoList) throws TmsDaoException;
	
	/**
	 * 根据车辆检测ID查询车辆图片信息
	 * 
	 * @param carDetectId
	 * @return
	 * @throws TmsDaoException
	 */
	public List<TmsDetectPicDto> findDetectPicInfoByDetectId(int carDetectId) throws TmsDaoException;
	
}
